package com.wtwd.campus.hxy.entity;

/**
 * @Author ldaoliang
 * @Date create in 15:31 2021/6/10
 * @Description
 */
public class CommandRecord {

    private Integer id;
    private String commandType;   // 指令关键字
    private String commandContent;   // 指令内容
    private Long beginTime;   // 指令发送时间
    private Long endTime;   // 指令结束时间
    private Integer result;   // 指令结果  0：待发送，1-发送中，2-完成 3-失败
    private String deviceImei;   // 设备imei号
    private String commandNumber;    // 指令序列号
    private Integer sendType;   // 发送类型 1-在线 2-离线
    private Long createTime;   // 指令创建时间（针对离线，表示离线发送时该指令缓存时间）
    private Integer userId;   // 操作人用户id
    private Integer offlineId;  //对应离线指令缓存的记录id（针对离线发送指令才有）
    private Integer sequence;//序列号，针对白名单和课堂模式

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCommandType() {
        return commandType;
    }

    public void setCommandType(String commandType) {
        this.commandType = commandType;
    }

    public String getCommandContent() {
        return commandContent;
    }

    public void setCommandContent(String commandContent) {
        this.commandContent = commandContent;
    }

    public Long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Long beginTime) {
        this.beginTime = beginTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public String getDeviceImei() {
        return deviceImei;
    }

    public void setDeviceImei(String deviceImei) {
        this.deviceImei = deviceImei;
    }

    public String getCommandNumber() {
        return commandNumber;
    }

    public void setCommandNumber(String commandNumber) {
        this.commandNumber = commandNumber;
    }

    public Integer getSendType() {
        return sendType;
    }

    public void setSendType(Integer sendType) {
        this.sendType = sendType;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getOfflineId() {
        return offlineId;
    }

    public void setOfflineId(Integer offlineId) {
        this.offlineId = offlineId;
    }

    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }

    @Override
    public String toString() {
        return "CommandRecord{" +
                "id=" + id +
                ", commandType='" + commandType + '\'' +
                ", commandContent='" + commandContent + '\'' +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", result=" + result +
                ", deviceImei='" + deviceImei + '\'' +
                ", commandNumber='" + commandNumber + '\'' +
                ", sendType=" + sendType +
                ", createTime=" + createTime +
                ", userId=" + userId +
                ", offlineId=" + offlineId +
                ", sequence=" + sequence +
                '}';
    }
}
